package com.atwei.mango.system.commen.utils;

/**
 * @Classname JWTConfig
 * @Description
 * @Date 2022/6/9 18:13
 * @Author liuwei
 */
public class JWTConfig {

    /**
     * 密匙Key
     */
    public static final String SECRET = "liuwei";

    /**
     * HeaderKey
     */
    public static final String TOKEN_HEADER = "Authorization";

    /**
     * Token前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 过期时间
     */
    public static final Integer EXPIRATION = 86400*1000;

    /**
     * 配置白名单
     */
    public static final String ANT_MATCHERS = "/swagger-resources/**,/swagger-ui.html";

    /**
     * 登陆接口
     */
    public static final String LOGIN_URL = "/account/login";
    /**
     * 登出接口
     */
    public static final String LOGOUT_URL = "/account/logout";
    /**
     * cookies
     */
    public static final String[] COOKIES = {"Mango-Token","Mango-AccountId","Mango-AccountName"};

}
